package com.example.anyong17_julnumgi.test;

import android.os.Parcel;
import android.os.Parcelable;

public class Record implements Parcelable {
	String counter;
	String time;
	//String date;
	
	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(counter);
		dest.writeString(time);
	}
	
	public Record() {
    }//생성자1

	public Record(Parcel in) {
		readFromParcel(in);
	}//생성자2
	
	public Record(String _counter, String _time){
		this.counter=_counter;
		this.time=_counter;
	}//생성자3

	private void readFromParcel(Parcel in) {
		counter = in.readString();
		time = in.readString();
	}
	
	public static final Parcelable.Creator CREATOR = new Parcelable.Creator() {
		public Record createFromParcel(Parcel src) {
		    return new Record(src);
		  }
		 public Record[] newArray(int size) {
			    return new Record[size];
		  }
	};

}
